package com.info.zhiduoduo.pay.sdk.zhaoshangbank.model.common.query;

import com.info.zhiduoduo.repository.entity.pay.PaymentMerchant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Account {

	/** 账号 */
	private String accnbr;

	/** 分行号 */
	private String bbknbr;

	public static List<Account> ofList(PaymentMerchant paymentMerchant){
		List<Account> list = new ArrayList<>();
		Account account = new Account()
				.setAccnbr(paymentMerchant.getBankCard())
				.setBbknbr(paymentMerchant.getBranchNumber());
		list.add(account);
		return list;
	}

}
